package com.gjy.design.bridge.factory;

import java.io.FileNotFoundException;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 09:31:23
 */
public class FactoryClient {

    public static void main(String[] args) throws FileNotFoundException {
        e1();
    }

    private static void e1() {
        DataPersist db = PersistFactory.getPersist("db");

        DocumentService svc1 = new PdfService(db, new ExcelService(db));
        svc1.save("Hello from DB");
    }

}
